<template>
	<view class="body">
		<view class="kuai" v-for="item in list">
			<image :src="item.img" mode=""></image>
			<view class="">
				{{item.name}}
			</view>
			<view class="">
				{{item.price}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[]
			};
		},
		onLoad() {
			var a =uni.getStorageSync("obj")
			this.list.push(a)
			console.log(this.list)
			
			uni.setNavigationBarTitle({
				title: '收藏',
			
			});
			uni.setNavigationBarColor({
			
				frontColor: '#ffffff',
				backgroundColor: ' #354E44',
				animation: {
					duration: 400,
					timingFunc: 'easeIn'
				}
			})
		},
		onShow() {
			
		}
	}
</script>

<style lang="scss" scoped>
.body {
		background-color: #F1ECE7;
		width: 100%;
		height: 100vh;
		overflow: hidden;
	}
	
	.kuai{
		display: flex;
		
		width: 80%;
		height: 150rpx;
		margin: 0 auto;
		margin-top: 20rpx;
		border-radius: 10rpx;
		background-color: #FFFFFF;
		image{
			width: 80rpx;
			height: 80rpx;
		}
	}
</style>
